<template>
	<view class="page" :style="themeColor">
		<view
			class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex logOutSubmit_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-stretch justify-between logOutSubmit_fd0_0'>
				<view class='flex flex-wrap align-center logOutSubmit_fd0_0_c0'>
					<text class='fu-iconfont2  logOutSubmit_fd0_0_c0_c0' @tap.stop="handleJumpDiy" data-type="back"
						data-url="1">&#xe794;</text>
				</view>
				<view class='flex flex-wrap align-center'>
					<text class='logOutSubmit_fd0_0_c1_c0'>注销账号</text>
				</view>
				<view class='flex align-center justify-end logOutSubmit_fd0_0_c2'>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
		<view class="loading_css" v-if="!isShow">
			<u-loading size="36" color="#4177DD"></u-loading>
			<view class="loading_text">加载中</view>
		</view>
		
		<block v-else>
			<!---账号提交成功flex布局开始-->
			<view class="flex flex-direction flex-wrap align-center benben-flex-layout logOutSubmit_flex_1" v-if="type == 0">
				<image class='logOutSubmit_fd1_0' mode="aspectFit" :src='STATIC_URL+"104.png"'></image>
				<text class='logOutSubmit_fd1_1'>注销申请提交成功！</text>
				<text class='logOutSubmit_fd1_2'>我们工作人员将会对您的账号进行审核，审核通过后， 账号将会被注销，请知悉</text>
			</view>
			<!---账号提交成功flex布局结束-->
			<!---注销账号提交处理中flex布局开始-->
			<view class="flex flex-direction flex-wrap align-center benben-flex-layout logOutSubmit_flex_2" v-if="type == 1 && unsetInfo.status!='-1'">
				<image class='logOutSubmit_fd2_0' mode="aspectFit" :src='STATIC_URL+"105.png"'></image>
				<text class='logOutSubmit_fd2_1'>处理中</text>
				<view class='flex flex-wrap align-center'>
					<text class='logOutSubmit_fd2_2_c0'>注销理由：</text>
					<text class='logOutSubmit_fd2_2_c1'>{{unsetInfo.reason}}</text>
				</view>
			</view>
			<!---注销账号提交处理中flex布局结束-->
		</block>


	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'
	export default {
		components: {},


		data() {
			return {
				"dataStatus": {
					"status": "",
					"rule": "",
					"reason": ""
				},
				"isDayat": "1",
				"id": "1",
				"unsetInfo": {},
				"isShow": false,
				"type": 0
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			let {
				id,
				type
			} = options
			if (id !== undefined) this.id = id
			if (type !== undefined) this.type = type
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.getUnset();
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取账户注销状态和协议
			async getUnset() {
				let resData = await this.$api.post(global.apiUrls.post64367ec8ebe21)
				this.isShow = true;
				if (resData.data.code != 1) {
					this.$message.info(resData.data.msg)
					return
				}
				this.unsetInfo = resData.data.data
				// console.log(this.unsetInfo);
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto !important;
	}

	.logOutSubmit_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.logOutSubmit_fd0_0_c2 {
		padding: 0rpx 0rpx 0rpx 0rpx;
		width: 100rpx;
	}

	.logOutSubmit_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 50rpx;
	}

	.logOutSubmit_fd0_0_c0_c0 {
		font-size: 36rpx;
		font-weight: 400;
		color: #333;
	}

	.logOutSubmit_fd0_0_c0 {
		width: 100rpx;
	}

	.logOutSubmit_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.logOutSubmit_flex_1 {
		padding: 88rpx 39rpx 0rpx 39rpx;
	}

	.logOutSubmit_fd1_2 {
		line-height: 40rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #666666;
		text-align: center;
	}

	.logOutSubmit_fd1_1 {
		font-size: 32rpx;
		font-weight: 700;
		color: #000000;
		margin: 32rpx 0rpx 24rpx 0rpx;
	}

	.logOutSubmit_fd1_0 {
		width: 250rpx;
		height: 180rpx;
		margin: 0rpx 0rpx 10rpx 0rpx;
	}

	.logOutSubmit_flex_2 {
		padding: 88rpx 0rpx 0rpx 0rpx;
	}

	.logOutSubmit_fd2_2_c1 {
		line-height: 40rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #666666;
	}

	.logOutSubmit_fd2_2_c0 {
		line-height: 40rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #666666;
	}

	.logOutSubmit_fd2_1 {
		line-height: 105rpx;
		font-size: 32rpx;
		font-weight: 700;
		color: #000000;
	}

	.logOutSubmit_fd2_0 {
		width: 250rpx;
		height: 180rpx;
		margin: 0rpx 0rpx 10rpx 0rpx;
	}
</style>